#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QPainter>
#include <QLabel>
#include "zhuce.h"
#include "serverwidget.h"
#include "endwidget.h"


namespace Ui {
class Widget;
}

extern zhuce* window1;
extern  ServerWidget* window2;
extern EndWidget* window3;

extern int final_winner;
extern int score[10] ; // i-》score【i】
extern int participants ;
extern QString receive_text ;


class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = nullptr);
    ~Widget();
    Ui::Widget *ui;




private slots:

    void on_pushButton_2_clicked();

private:
    int generateRandomNumber();



};

#endif // WIDGET_H
